# Base images 基础镜像
FROM nginx:1.17.10

#MAINTAINER 维护者信息
MAINTAINER 429227510@qq.com

#RUN groupadd --gid 1002 -r docker && useradd --uid 123 -r -g docker dcos

#RUN 执行以下命令
RUN mkdir -p /var/www/html
#COPY
COPY ./dist       /var/www/html/
#add robots
#COPY ./robots.txt /var/www/html/

COPY ./nginx/nginx.conf /etc/nginx

RUN rm -f /etc/nginx/conf.d/default.conf
#RUN chown -R dcos:docker /var/www/html \
#                         /var/cache/nginx \
#                         /etc/nginx \
#                         /var/log/nginx/

#EXPOSE 映射端口
EXPOSE 8081

#CMD 运行以下命令
#CMD ["nginx", "-g", "daemon off;"]

#USER dcos
